package swind.web.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="exam_test")
public class ExamTest implements Serializable{
	
	private static final long serialVersionUID = 6888580891145577308L;
	

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	private int id;
	
	@Column(name = "content")
	private String content;
	
	@Column(name = "choose_a")
	private String chooseA;
	
	@Column(name = "choose_b")
	private String chooseB;
	
	@Column(name = "choose_c")
	private String chooseC;
	
	@Column(name = "choose_d")
	private String chooseD;
	
	@Column(name = "answer")
	private String answer;
	
	@OneToOne
	@JoinColumn(name = "sub_id")
	private ExamSubject subject;
	
	@OneToOne
	@JoinColumn(name="test_type_id")
	private ExamTestType testType;
	
	public ExamTest() {
		// TODO Auto-generated constructor stub
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getChooseA() {
		return chooseA;
	}

	public void setChooseA(String chooseA) {
		this.chooseA = chooseA;
	}

	public String getChooseB() {
		return chooseB;
	}

	public void setChooseB(String chooseB) {
		this.chooseB = chooseB;
	}

	public String getChooseC() {
		return chooseC;
	}

	public void setChooseC(String chooseC) {
		this.chooseC = chooseC;
	}

	public String getChooseD() {
		return chooseD;
	}

	public void setChooseD(String chooseD) {
		this.chooseD = chooseD;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public ExamSubject getSubject() {
		return subject;
	}

	public void setSubject(ExamSubject subject) {
		this.subject = subject;
	}

	public ExamTestType getTestType() {
		return testType;
	}

	public void setTestType(ExamTestType testType) {
		this.testType = testType;
	}

	
	
	
}
